<template>
    <VcUpload :action="'/api/upload'" accept=".png,.jpg,.jpeg" :limit="2" :size="1024" v-model="list">
        <template #trigger>
            <el-button type="primary">点击上传文件</el-button>
        </template>
        <template #tip>
            <ul>
                <li>1.最多上传2个文件</li>
                <li>2.单个文件大小1024KB</li>
                <li>3.只支持.png,.jpg,.jpeg文件上传</li>
            </ul>
        </template>
    </VcUpload>
</template>
<script setup lang="ts">
import { ref } from 'vue'
    const list = ref([])
</script>
<style lang="scss" scoped>
ul{
    list-style: none;
    padding-left: 0;
}
</style>